package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.db.UserInfo;
import com.tanhua.model.mongo.Voice;

import java.util.List;

/**
 * 推荐语音接口
 *
 * @author LiuKeLin
 * @title: VoiceApi
 * @projectName tanhua-practice
 * @description: TODO
 * @date 2022/2/2110:41
 */
public interface VoicesApi {

    void addVoice(Voice voice);

    /***
     * 排除异性 本人
     * @param userInfo
     * @return
     */
    List<Voice> findVoices(UserInfo userInfo);

    /**
     * 好友表中查询是否为好友
     *
     * @param userId
     * @param id
     * @return
     */
    boolean isFreed(Long userId, Long id);
}
